import request from '@/utils/request'

// 查询战斗力量列表
export function listPower(query) {
  return request({
    url: '/business/power/list',
    method: 'get',
    params: query
  })
}

// 查询战斗力量详细
export function getPower(id) {
  return request({
    url: '/business/power/' + id,
    method: 'get'
  })
}

// 新增战斗力量
export function addPower(data) {
  return request({
    url: '/business/power',
    method: 'post',
    data: data
  })
}

// 修改战斗力量
export function updatePower(data) {
  return request({
    url: '/business/power',
    method: 'put',
    data: data
  })
}

// 删除战斗力量
export function delPower(id) {
  return request({
    url: '/business/power/' + id,
    method: 'delete'
  })
}
